<%--
  Created by IntelliJ IDEA.
  User: YLZX-Z0107
  Date: 2015/1/7
  Time: 14:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>btspread - Search</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="description"
          content="btspread - The free online torrent file to magnet link conversion, magnet link to torrent file conversion, Search magnet link and Search torrent file.">
    <meta name="author" content="btspread">
    <meta name="keywords"
          content="bt, torrent, search, download, magnet, convert, magnet2torrent, torrent2magnet, bittorrent">
    <meta property="og:title" content="btspread - Search">
    <meta property="og:description"
          content="btspread - The free online torrent file to magnet link conversion, magnet link to torrent file conversion, Search magnet link and Search torrent file.">
    <meta property="og:image" content="http://www.btspread.com/app/btspread/View/images/og.btspread.png">
    <meta property="og:url" content="http://www.btspread.com/search">
    <meta property="og:type" content="website">
    <meta property="og:site_name" content="btspread">
    <link rel="shortcut Icon" href="http://www.btspread.com/app/btspread/View/images/favicon.ico">
    <link rel="bookmark" href="http://www.btspread.com/app/btspread/View/images/favicon.ico">
    <script src="static/jquery-2.1.1.min.js" type="application/javascript"></script>
    <script src="static/bootstrap.min.js" type="application/javascript"></script>
    <meta name="google-site-verification" content="Esi7tOq-gDSN7Q0jRz8-guo7DV9vfjEk9lbN50crW9A">
    <script language="javascript">function $ROOT_URL() {
        return "http://www.btspread.com"
    }
    function $APP() {
        return "btspread"
    }
    function $APP_URL() {
        return "/index.php?app=btspread&"
    }
    function $APP_INFO_URL() {
        return "/index.php/btspread"
    }
    function $APP_REWRITE_URL() {
        return "/btspread"
    }
    function $VIEW_URL() {
        return "http://www.btspread.com/app/btspread/View"
    }
    function $UPLOAD_URL() {
        return "/app/btspread/Upload"
    }</script>
    <script src="http://www.btspread.com/script/jquery/1.9.1/jquery.min.js"></script>
    <link href="http://www.btspread.com/script/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
    <script>if (typeof jQuery != 'undefined') {
        document.write("<script src='http://www.btspread.com/script/bootstrap/2.3.2/js/bootstrap.min.js'><\/script>");
    }</script>
    <script src="http://www.btspread.com/script/bootstrap/2.3.2/js/bootstrap.min.js"></script>
    <script src="http://www.btspread.com/script/jquery.cookie/1.4.1/jquery.cookie.min.js"></script>
    <script src="http://www.btspread.com/script/jquery.popunder/0.2.27/jquery.popunder.min.js"></script>
    <script src="http://www.btspread.com/script/jquery.admanager/1.0.0/jquery.admanager.min.js"></script>
    <script>var adblock = true;</script>
    <script src="http://www.btspread.com/eroex.js"></script>
    <!--[if lte IE 6]>
    <link href="http://www.btspread.com/script/bootstrap/2.3.2/css/bootstrap-ie6.min.css" rel="stylesheet">
    <link href="http://www.btspread.com/script/bootstrap/2.3.2/css/ie.css" rel="stylesheet">
    <![endif]-->
    <link href="http://www.btspread.com/app/btspread/View/images/base.css" rel="stylesheet">
    <script language="JavaScript">if (top.location !== self.location) {
        top.location.href = self.location.href;
    }
    (function (a) {
        (jQuery.browser = jQuery.browser || {}).mobile = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))
    })(navigator.userAgent || navigator.vendor || window.opera);
    if (jQuery.browser.mobile && (window.location.host != 'm.btspread.com')) {
        window.location.href = 'http://m.btspread.com/search';
    }
    function _ipu(u) {
        var ipop = [[u]];
        var ipopHandler = function (e) {
            if (navigator.userAgent.match(/iPad|UCBrowser|Opera/)) {
                window.open(u);
            }
            else {
                $.popunder(ipop);
            }
        };
        $(document.body).one('click', ipopHandler);
    }</script>
</head>
<body>
<div class="header">
    <div class="container">
        <div class="pull-left">
            <a class="logo" href="http://www.btspread.com/">btspread.com</a>
        </div>
        <div class="pull-right" style="margin-top: 35px;width:392px;">
            <a href="javascript:ishare('facebook');"><img
                    src="http://www.btspread.com/app/btspread/View/images/ishare/facebook.png" border="0"
                    alt="Facebook"></a>
            <a href="javascript:ishare('twitter');"><img
                    src="http://www.btspread.com/app/btspread/View/images/ishare/twitter.png" border="0" alt="Twitter"></a>
            <a href="javascript:ishare('tumblr');"><img
                    src="http://www.btspread.com/app/btspread/View/images/ishare/tumblr.png" border="0"
                    alt="Tumblr"></a>
            <a href="javascript:ishare('reddit');"><img
                    src="http://www.btspread.com/app/btspread/View/images/ishare/reddit.png" border="0"
                    alt="Reddit"></a>
            <a href="javascript:ishare('pinterest');"><img
                    src="http://www.btspread.com/app/btspread/View/images/ishare/pinterest.png" border="0"
                    alt="Pinterest"></a>
            <a href="javascript:ishare('google_plusone_share');"><img
                    src="http://www.btspread.com/app/btspread/View/images/ishare/google_plusone_share.png" border="0"
                    alt="Google+"></a>
            <a href="javascript:ishare('blogger');"><img
                    src="http://www.btspread.com/app/btspread/View/images/ishare/blogger.png" border="0" alt="Blogger"></a>
            <a href="javascript:ishare('google');"><img
                    src="http://www.btspread.com/app/btspread/View/images/ishare/google.png" border="0"
                    alt="Google"></a>
            <a href="javascript:ishare('qr');"><img
                    src="http://www.btspread.com/app/btspread/View/images/ishare/2tag.png" border="0" alt="2 Tag"></a>
            <a href="javascript:ishare('email');"><img
                    src="http://www.btspread.com/app/btspread/View/images/ishare/email.png" border="0" alt="Email"></a>
            <a href="javascript:ishare('favorites');"><img
                    src="http://www.btspread.com/app/btspread/View/images/ishare/favorites.png" border="0"
                    alt="Favorites"></a>
        </div>
    </div>
</div>
<div class="content">
    <div class="container">
        <div class="row">
            <div class="navigation pull-right"><a class="torrent" href="http://www.btspread.com/convert/torrent"><i
                    class="icon-circle-arrow-up icon-white"></i> Torrent</a><a class="magnet"
                                                                               href="http://www.btspread.com/convert/magnet"><i
                    class="icon-circle-arrow-down icon-white"></i> Magnet</a><a class="list"
                                                                                href="http://www.btspread.com/magnet/list"><i
                    class="icon-list icon-white"></i> Magnet Links</a><a class="search"
                                                                         href="http://www.btspread.com/search"><i
                    class="icon-search icon-white"></i> Search</a></div>
        </div>
        <div style="margin-top:20px;">
            <form class="form-search"><input id="search-keyword" class="input-medium" type="text" name="keyword"
                                             value="" style="width:300px;height:30px">
                <button id="search-submit" type="button" class="btn"><i class="icon-search"></i> Search</button>
            </form>
            <script> (function ($) {
                function search() {
                    //window.location.href = "http://www.btspread.com/search/" + encodeURIComponent($('#search-keyword').val().replace(/\./g, '-'));
                    $.ajax({
                        type: "get",
                        url: "bt/list?word=" + $('#search-keyword').val().replace(/\./g, '-'),
                        dataType: "json",
                        success: function (data) {
                            var count = data.length;
                            var tbd = $("#item-list");
                            var ht = "";
                            for (var i = 0; i < count; i++) {
                                ht = ht + "<tr><td><a href=\"magnet:?xt=urn:btih:" + data[i].hash + "\" title=\"" + data[i].title + "\"</a>" + data[i].title +"</td><td class=\"files-size\">" + data[i].fileSize + "</td><td class=\"convert-date\">" + data[i].convertDate + "</td><td class=\"action\"><a href=\"#\">Detail</a></td></tr>";
                            }
                            tbd.html(ht);
                        },
                        error: function (XMLHttpRequest, textStatus, errorThrown) {
                            alert(errorThrown);
                        }
                    });
                }

                $('#search-submit').click(search);
                $('#search-keyword').keypress(function (e) {
                    var key = e.which;
                    if (key == 13) {
                        search();
                        return false;
                    }
                });
            })(jQuery);</script>
        </div>
        <h3>Latest Search:</h3>

        <div class="latest-search row-fluid"><span>1.<a
                href="http://www.btspread.com/search/%E6%B7%AB%E4%B9%B1OL%E7%8E%A9%E5%85%B7%E8%B2%AC%E3%81%82%E3%82%86%E3%82%80">淫乱OL玩具責あゆむ</a> </span><span>2.<a
                href="http://www.btspread.com/search/onlytease">onlytease</a> </span><span>3.<a
                href="http://www.btspread.com/search/lay-t">lay-t</a> </span><span>4.<a
                href="http://www.btspread.com/search/Reference">Reference</a> </span><span>5.<a
                href="http://www.btspread.com/search/Budapest%20Girls">Budapest Girls</a> </span><span>6.<a
                href="http://www.btspread.com/search/AP-177">AP-177</a> </span><span>7.<a
                href="http://www.btspread.com/search/%E5%9C%8B%E8%AA%9E">國語</a> </span></div>

        <%--<div class="pagination">--%>
        <%--<ul>--%>
        <%--<li class="active"><a href="/search/波多野結衣/currentPage/1">1</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/2">2</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/3">3</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/4">4</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/5">5</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/6">6</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/7">7</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/8">8</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/9">9</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/10">10</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/2">Next</a></li>--%>
        <%--</ul>--%>
        <%--</div>--%>
        <table class="table magnet-list">
            <thead>
            <tr>
                <th>Torrent Description</th>
                <th class="files-size">Files Size</th>
                <th class="convert-date">Convert Date</th>
                <th class="action">Detail</th>
            </tr>
            </thead>
            <tbody id="item-list">

            </tbody>
        </table>
        <%--<div class="pagination">--%>
        <%--<ul>--%>
        <%--<li class="active"><a href="/search/波多野結衣/currentPage/1">1</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/2">2</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/3">3</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/4">4</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/5">5</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/6">6</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/7">7</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/8">8</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/9">9</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/10">10</a></li>--%>
        <%--<li><a href="/search/波多野結衣/currentPage/2">Next</a></li>--%>
        <%--</ul>--%>
        <%--</div>--%>
    </div>
</div>
<div class="bottom">
    <div class="container">
        <div class="row">
            <div class="span4">
                <ul>
                    <li>
                        <a href="javascript:window.external.AddSearchProvider('http://www.btspread.com/opensearch.xml');">Browser
                            search plugin</a>
                    </li>
                    <li>
                        <a href="http://www.btspread.com/btspread.btsearch">μTorrent search plugin</a>
                    </li>
                    <script>

                        function ishare(api, pubid) {
                            pubid = pubid || '';
                            switch (api) {
                                case'qr':
                                    $('#QRShareModal').modal('show');
                                    $('#QRShareImage').attr("src", "http://api.qrserver.com/v1/create-qr-code/?size=200x200&data=" + encodeURIComponent(window.location.href));
                                    break;
                                case'favorites':
                                    addToFavorite(window.location.href, document.title);
                                    break;
                                default:
                                    window.open('http://api.addthis.com/oexchange/0.8/forward/' + api + '/offer?pubid=' + pubid + '&url=' + encodeURIComponent(window.location.href) + '&title=' + encodeURIComponent(document.title));
                            }
                        }
                        function addToFavorite(url, title) {
                            if (window.sidebar) {
                                window.sidebar.addPanel(title, url, "");
                            }
                            else if (document.all && window.external) {
                                if (window.external.addToFavoritesBar) {
                                    window.external.addToFavoritesBar(url, title);
                                }
                                else {
                                    window.external.AddFavorite(url, title);
                                }
                            }
                            else if (window.opera) {
                                document.getElementById("addlink").href = url;
                                document.getElementById("addlink").title = title;
                                document.getElementById("addlink").rel = "sidebar";
                            }
                            else {
                                alert('Press ' + (navigator.userAgent.toLowerCase().indexOf('mac') != -1 ? 'Command/Cmd' : 'CTRL') + ' + D to bookmark this page.');
                            }
                        }</script>
                    <li>
                        <a href="javascript:addToFavorite('http://www.btspread.com/', 'btspread.com');">Add favorite</a>
                    </li>
                </ul>
                <div style="margin-left:10px">
                    <a href="http://safeweb.norton.com/report/show?url=www.btspread.com" target="_blank"
                       rel="external nofollow"><img border="0"
                                                    src="http://www.btspread.com/app/btspread/View/images/symPartnerPortalLogoLeft.png"
                                                    width="156" height="42"></a>
                </div>
            </div>
            <div class="span4">
                <ul>
                    <li>
                        <a href="http://www.btspread.com/info/faq">FAQ</a>
                    </li>
                    <li>
                        <a href="http://www.btspread.com/info/tos">Terms of service</a>
                    </li>
                    <li>
                        <a href="http://www.btspread.com/info/dmca">DMCA</a>
                    </li>
                    <li>
                        <a href="http://www.btspread.com/info/contact">Contact Us</a>
                    </li>
                </ul>
            </div>
            <div class="span4">
                <p>
                    The btspread.com converts your torrent files into magnet links in a single step. The magnet URI
                    scheme is supported by most bittorrent client including BitComet, µTorrent and Transmission.
                </p>

                <p>
                    Magnet link is the new way to distribute your files over the network.
                </p>
            </div>
        </div>
    </div>
</div>
</body>
</html>
